package qldc.pm.tiensu.constants;

public enum TrangThaiTrichLucEnum {
	TAT_CA("tat-ca",0),
	DA_TRICH_LUC("da-trich-luc",1),
	CHUA_TRICH_LUC("chua-trich-luc",2);
	
	private int value;
	private String key;
	
	private TrangThaiTrichLucEnum(String key, int value){
		this.value = value;
		this.key = key;
	}
	
	public int getValue() {
		return value;
	}

	public void setValue(int value) {
		this.value = value;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public static String getKey(int value){
		switch (value) {
		case 1:
			return DA_TRICH_LUC.key;
		case 2:
			return CHUA_TRICH_LUC.key;
		default:
			return CHUA_TRICH_LUC.key;
		}
	}

}
